package com.yunji.order.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.yunji.order.domain.OrderDetailDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2025/3/18 15:26
 * @description : TODO
 **/
public interface IOrderDetailMapper extends MPJBaseMapper<OrderDetailDO> {
    @Select("select product_name from t_order_detail where order_id = #{orderId}  ")
    List<String> getNamesByOrderId(@Param("orderId") Long orderId);
}
